﻿using System;
using System.Collections.Generic;
using System.Data;
using Lightray.Hattrick.ChppLib.EntityTypes;

namespace Lightray.Hattrick
{
    public interface IModel
    {
        DataView Data { get; }
        bool HasProgressReport { get; }

        event EventHandler DataChanged;

        ModelColumnDescription GetColumnDescription(string columnName);
        PlayerRole GetRoleColumnName(string columnName);
        
        BasicPlayer PlayerFromRow(DataRowView dataRowView);
        String[] UnlockedSkillsFromRow(DataRowView dataRowView);
        KeyValuePair<string, ProgressCharacteristic>[] PlayerProgressFromRow(DataRowView dataRowView);

        void Sort(string columnName);

        
    }
}
